Skip to content

Parallel Test for SQL - Simultaneous read operations - #786

Merged
Shyam Sundar J (severussundar) merged 9 commits into
mainfrom
dev/shyamsundarj/concurrent-test-1
Sep 9, 2022
Merged

Parallel Test for SQL - Simultaneous read operations#786
Shyam Sundar J (severussundar) merged 9 commits into
mainfrom
dev/shyamsundarj/concurrent-test-1

Conversation

@severussundar

@severussundar Shyam Sundar J (severussundar) commented Sep 7, 2022

Copy link
Copy Markdown
Contributor

Why make this change?

  • This is one of the PRs for addressing #708.
  • As part of this PR, a test that performs simultaneous read requests (REST GET and GraphQL query) is added.
  • In a subsequent PR, a test that performs simultaneous read, update and delete operations will be added.

What is this change?

  • Adds tests that performs simultaneous read(REST GET and GraphQL Query) for SQL database types.
  • Instructions for setting up k6 in local is added.
  • At the moment, this test will not run in the pipeline. The changes for integrating this test in the pipeline will be added in a subsequent PR.

How was this tested?

  • The test script was run locally against dab

  • Test Results:
    In the below screenshot, checks is the only relevant field for this test. Other fields are applicable only for performance tests such as load, stress tests etc.

k6 Local Test Run

Comment thread src/Service.Tests/ConcurrentTests/SqlTests/ParallelReadTests.js Outdated
Comment thread src/Service.Tests/ConcurrentTests/SqlTests/ParallelReadTests.js Outdated

@aaronburtle aaronburtle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for adding in parallel testing.

Comment thread src/Service.Tests/ConcurrentTests/ValidationHelper.js Outdated
Comment thread src/Service.Tests/ConcurrentTests/SqlTests/ParallelReadTests.js Outdated
Comment thread src/Service.Tests/ConcurrentTests/SqlTests/ParallelReadTests.js Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! with a few nit fixes

@severussundar
Shyam Sundar J (severussundar) deleted the dev/shyamsundarj/concurrent-test-1 branch September 9, 2022 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Test related issue.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Tests with concurrent REST and GraphQL API requests

3 participants